# -*- coding: latin-1 -*-
import unittest
from monedas.models import Moneda,Cotizacion
from productos.models import Producto
from contactos.models import Contacto
from django.test.client import Client
from datetime import *


class SimpleTest(unittest.TestCase):
    #fixtures = ['/fixtures/initial_data.json',]
    def setUp(self):
        # Every test needs a client.
        self.client = Client()
	self.moneda = Moneda.objects.create(nombre="dinar",simbolo="%&")
	self.cotiza = Cotizacion.objects.create(moneda=self.moneda,fecha=datetime.today().date(),valor = 4)
	
	
    def testMonedaCase(self):
	self.failUnlessEqual(self.moneda.cotizacion_actual(),4)